package com.laf.service.impl;

import com.laf.mapper.CateMapper;
import com.laf.model.Category;
import com.laf.service.CateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: He Changjie  on  2018-09-29
 * @description:
 */
@Service("cateService")
public class CateServiceImpl implements CateService {

    @Resource
    CateMapper mapper;

    @Override
    public List<Category> findAll() {
        List<Category> list = mapper.findAll();
        return list;
    }
}
